package com.hzp.micromall.content.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 优选专区和产品关系表
 * </p>
 *
 * @author houzipeng
 * @since 2022-03-08 10:15:14
 */
@Getter
@Setter
@TableName("cms_prefrence_area_product_relation")
@ApiModel(value = "PrefrenceAreaProductRelation对象", description = "优选专区和产品关系表")
public class PrefrenceAreaProductRelation {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("优选专区id")
    @TableField("prefrence_area_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long prefrenceAreaId;

    @ApiModelProperty("商品id")
    @TableField("product_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long productId;

    @ApiModelProperty("是否删除（0：未删除 1：已删除）")
    @TableField("isDel")
    @TableLogic
    private Integer isDel;


}
